package com.seckill.item.controller;


import com.seckill.item.domian.dto.ItemSeckillDTO;
import com.seckill.item.service.IItemSeckillService;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 * 秒杀商品表 前端控制器
 * </p>
 *
 * @author zsc
 * @since 2025-05-20
 */
@RestController
@RequestMapping("/item-seckill")
@ApiOperation("秒杀商品相关接口")
public class ItemSeckillController {

    @Autowired
    private IItemSeckillService itemSeckillService;

    //新增秒杀商品
    @ApiOperation("新增秒杀商品")
    @PostMapping("/add")
    public void add(@RequestBody ItemSeckillDTO itemSeckillDTO){
        itemSeckillService.add(itemSeckillDTO);
    }

}
